<template>
  <Child ref="childRef" />

  <div class="body">
    <ul>
      <li v-for="(item, index) in childRef?.list" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script setup>
import Child from './child.vue'
import { ref } from 'vue'
const childRef = ref(null)
console.log(childRef.value);  // ['html', 'css', 'js']





</script>

<style lang="css" scoped></style>